package com.duanjw.springcloud.openfeign.provider.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * 服务消费者 feign
 * <p>
 * 通过该接口来调用服务消费者
 *
 * @author duanjw
 */
@FeignClient(name = "openfeign-consumer")
public interface ConsumerClient {
    /**
     * echo 接口
     *
     * @param value
     * @return
     */
    @GetMapping("consumer/echo/{value}")
    String hello(@PathVariable("value") String value);
}